package com.youren.health.dao;

import com.youren.health.pojo.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MemberDao {
    Integer add(Member member);

    Member findByPhone(String telephone);

    String findNameById(Integer memberId);

    Integer getMemberCountByMouth(String mouths);

    List<Map<String, Integer>> findSetmealCount();

    Integer findtodayNewMember(String reportDate);

    Integer findTotalMember();

    Integer findThisWeekNewMember(String thisWeekMonday);

    Integer findThisMonthNewMember(String firstDay4ThisMonth);

    Integer fingTodayOrderNumber(String reportDate);

    Integer findTodayVisitsNumber(String reportDate);

    Integer findThisWeekOrderNumber(@Param("thisWeekMonday") String thisWeekMonday, @Param("sundayOfThisWeek") String sundayOfThisWeek);

    Integer findThisWeekVisitsNumber(@Param("thisWeekMonday") String thisWeekMonday, @Param("sundayOfThisWeek") String sundayOfThisWeek);

    Integer findThisMonthOrderNumber(@Param("firstDay4ThisMonth") String firstDay4ThisMonth, @Param("lastDay4ThisMonth") String lastDay4ThisMonth);

    Integer findThisMonthVisitsNumber(@Param("firstDay4ThisMonth") String firstDay4ThisMonth, @Param("lastDay4ThisMonth") String lastDay4ThisMonth);

    List<Map<String, Object>> findHotSetmeal();

}
